package com.zd.springcloud.config;


import com.zd.springcloud.config.callback.OrderClientCallbackImpl;
import com.zd.springcloud.domain.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import org.springframework.web.bind.annotation.RequestBody;

/*
    value 服务的名称一般和 spring.application.name的名称一致
 */
@FeignClient(value = "xa-sprigncloud-ordeer" ,fallback = OrderClientCallbackImpl.class)
public interface OrderClient {


    @GetMapping("/order/addOrder")
    String addOrder(@RequestBody Order order);
}
